<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <title>Code Review</title>
  <%= stylesheet_link_tag "styles" %>
  <%= javascript_include_tag "script" %>
</head>
<body>
<div align="right">
<div style="float:left; font-weight:bold"><%= _("<i>Shinji-ko</i> Code Review Tool")%></div>

<% if logged_in? %>
  <b><%= "%{email} (%{login})" % {:email => self.current_user.email, :login => self.current_user.login} %></b>
  |
  <% unless self.current_user.login %>
    <span style="color:red"><%=h _("Please choose your nickname with")%></span>
  <% end %>
  <%= link_to _("Settings"),{:controller => :account, :action => :settings}, :class => "novisit" %>
|
<% end %>

  <%= link_to _("Help"),"http://code.google.com/p/shinjiko/wiki/CodeReviewHelp", :class => "novisit", :target => "_blank" %>
|
  <%= link_to _("Bug tracker"),"http://code.google.com/p/shinjiko/issues/list", :class => "novisit", :target => "_blank" %>
|
  <%= link_to _("Discussion group"),"http://groups.google.com/group/shinjiko-discuss", :class => "novisit", :target => "_blank" %>
|
<% if logged_in? %>
  <%= link_to _("Sign out"), :controller => :account, :action => :logout %>
<% else %>
  <%= link_to _("Sign in"), :controller => :account, :action => :login %><%= _(" or ")%><%= link_to _("Sign up"), :controller => :account, :action => :signup %>
<% end %>
|
<%= _("Lang") %>(<%= link_to _("En"), :controller => :account, :action => :lang, :id => 'en' %>|
<%= link_to _("Ja"), :controller => :account, :action => :lang, :id => 'ja' %>)
</div>
<hr />
<div>

<%= link_to _("Create Issue"), {:controller => :issue, :action => :new}, :class => 'novisit' %>
|
<%= link_to _("My Issues"), {:controller => :issue, :action => :index}, :class => 'novisit' %>
|
<%= link_to _("Recent Issues"), {:controller => :issue, :action => :all}, :class => 'novisit' %>
|
<%= link_to _("Repositories"), {:controller => :repos, :action => :index}, :class => 'novisit' %>
<% unless logged_in? %>
|
<%= _("%{signin} or %{signup} with your account to create issues and add comments") % {:signin => link_to(_("Sign in"), :controller => :account, :action => :login), :signup => link_to(_("Sign up"), :controller => :account, :action => :signup)} %>
<% end %>
</div>
<hr />

<div>
<%= yield %>

</div>

<p />
<%= link_to image_tag("rails.png", :border => 0), "http://www.rubyonrails.org/", :alt => _("Powered by Ruby on Rails") %>

<% if @shinjiko_config['google_analytics'] %>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("<%= @shinjiko_config['google_analytics'] %>");
pageTracker._initData();
pageTracker._trackPageview();
</script>
<% end %>
</body>
</html>
